﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WindowsFormsApplication1;

namespace laba_5
{
    class create_airplanes
    {
        public Boeing737 create_Boeing737(int kol)
        {
            Boeing737 Boeing737_ = new Boeing737();
            Boeing737_.set_kol(kol);
            return Boeing737_;
        }

        public Boeing747 create_Boeing747(int kol)
        {
            Boeing747 Boeing747_ = new Boeing747();
            Boeing747_.set_kol(kol);
            return Boeing747_;
        }

        public AirbusA320 create_AirbusA320(int kol)
        {
            AirbusA320 AirbusA320_ = new AirbusA320();
            AirbusA320_.set_kol(kol);
            return AirbusA320_;
        }
        public AirbusA340 create_AirbusA340(int kol)
        {
            AirbusA340 AirbusA340_ = new AirbusA340();
            AirbusA340_.set_kol(kol);
            return AirbusA340_;
        }

        public company create_company(Boeing747 Boeing747_, AirbusA320 AirbusA320_, Boeing737 Boeing737_, AirbusA340 AirbusA340__)
        {
            company company_ = new company();
            company_.make_Company(Boeing747_, AirbusA320_, Boeing737_, AirbusA340__);
            return company_;
        }

    }
}
